﻿namespace HCMS.Web.Manage.Models
{
    /// <summary>
    /// 行政区划 抓取数据 模型
    /// </summary>
    public class CrawlAreaDataModel
    {
        /// <summary>
        /// 区域数据
        /// </summary>
        public List<CrawlAreaData_ProvinceModel> AreaData { get; set; } = new List<CrawlAreaData_ProvinceModel>();
    }

    /// <summary>
    /// 行政区划 省份 模型
    /// </summary>
    /// <remarks>
    /// 抓取数据
    /// </remarks>
    public class CrawlAreaData_ProvinceModel
    {
        /// <summary>
        /// 省份 名称
        /// </summary>
        public string ProvinceName { get; set; } = "";

        /// <summary>
        /// 城市 列表
        /// </summary>
        public List<CrawlAreaData_CityModel> CityList { get; set; } = new List<CrawlAreaData_CityModel>();

        /// <summary>
        /// 区域 列表
        /// </summary>
        public List<CrawlAreaData_AreaModel> AreaList { get; set; } = new List<CrawlAreaData_AreaModel>();
    }

    /// <summary>
    /// 行政区划 城市 模型
    /// </summary>
    /// <remarks>
    /// 抓取数据
    /// </remarks>
    public class CrawlAreaData_CityModel
    {
        /// <summary>
        /// 城市 名称
        /// </summary>
        public string CityName { get; set; } = "";

        /// <summary>
        /// 行政区划代码
        /// </summary>
        public int RegionalismCode { get; set; }

        /// <summary>
        /// 区号
        /// </summary>
        public string AreaCode { get; set; } = "";

        /// <summary>
        /// 邮编
        /// </summary>
        public int PostCode { get; set; }
    }

    /// <summary>
    /// 行政区划 区域 模型
    /// </summary>
    /// <remarks>
    /// 抓取数据
    /// </remarks>
    public class CrawlAreaData_AreaModel
    {
        /// <summary>
        /// 城市 名称
        /// </summary>
        public string CityName { get; set; } = "";

        /// <summary>
        /// 区域 名称
        /// </summary>
        public string AreaName { get; set; } = "";

        /// <summary>
        /// 行政区划代码
        /// </summary>
        public int RegionalismCode { get; set; }

        /// <summary>
        /// 区号
        /// </summary>
        public string AreaCode { get; set; } = "";

        /// <summary>
        /// 邮编
        /// </summary>
        public int PostCode { get; set; }
    }
}
